<template>
  <div class="page">
    <div class="abc"></div>
      <button @click="open('success')">显示toast提示框(success)</button>
      <button @click="open('error')">显示toast提示框(error)</button>
      <button @click="open('warn')">显示toast提示框(warn)</button>
      <button @click="open('info')">显示toast提示框(info)</button>
  </div>
</template>

<script>
var rxToast=new Vue.prototype.$rxConstructor.Toast({selector:'.abc'})
export default {
  data() {
    return {

    }
  },
  methods: {
      open (type) {
          rxToast.show('今天没有作业。ououou',type)
      }
  }
}
</script>

<style scoped lang="scss">
button{
  display: block;
  margin-bottom: 20px;
}
.abc{
  width: 500px;
  height: 80px;
  border:1px solid red;
}
</style>
